# CopyDLLs.cmake
set(DLL_SOURCE_DIR "${CMAKE_SOURCE_DIR}/assets/libs")
file(GLOB DLL_FILES "${DLL_SOURCE_DIR}/*.dll")
foreach(DLL ${DLL_FILES})
    add_custom_command(
        TARGET ${CMAKE_PROJECT_NAME} POST_BUILD
        COMMAND ${CMAKE_COMMAND} -E copy_if_different
            "${DLL}"
            "$<TARGET_FILE_DIR:${CMAKE_PROJECT_NAME}>/"
        COMMENT "Copying DLL: ${DLL}"
        VERBATIM
    )
endforeach()